from overfish.libs.BaseObject import BaseObject
u"""
OverFish CMS

Created on: Jul 7, 2011 2:26:06 PM

@author: Tomas Holub (tomas.holub@olc.cz)
@package: modAcl

Authentication backend for django
u"""

class MongoBackend(BaseObject):
    u"""
    Authentication backend for django
    """
    def authenticate(self, username=None, password=None):
        user = User()
        user.username = u"admin"
        user.first_name = u"Administrator"
        user.last_name = u""
        user.is_active = True
        return user

class User(BaseObject):
    id = None
    username = None
    first_name = None
    last_name = None
    email = None
    is_active = None
    
    def save(self):
        pass